package com.tiger.project.service.impl;

import java.util.List;

import com.tiger.project.domain.AssetReceiptAccountEnclosure;
import com.tiger.project.mapper.AssetReceiptAccountEnclosureMapper;
import com.tiger.project.service.IAssetReceiptAccountEnclosureService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


/**
 * 【租金到账附件】Service业务层处理
 *
 * @author standard
 * @date 2022-11-30
 */
@Service
public class AssetReceiptAccountEnclosureServiceImpl implements IAssetReceiptAccountEnclosureService {

    @Autowired
    private AssetReceiptAccountEnclosureMapper assetReceiptAccountEnclosureMapper;

    /**
     * 查询【租金到账附件】
     *
     * @param id 【租金到账附件】主键
     * @return 【租金到账附件】
     */
    @Override
    public AssetReceiptAccountEnclosure selectAssetReceiptAccountEnclosureById(Long id) {
        return assetReceiptAccountEnclosureMapper.selectAssetReceiptAccountEnclosureById(id);
    }

    /**
     * 查询【租金到账附件】列表
     *
     * @param assetReceiptAccountEnclosure 【租金到账附件】
     * @return 【租金到账附件】
     */
    @Override
    public List<AssetReceiptAccountEnclosure> selectAssetReceiptAccountEnclosureList(AssetReceiptAccountEnclosure assetReceiptAccountEnclosure) {
        return assetReceiptAccountEnclosureMapper.selectAssetReceiptAccountEnclosureList(assetReceiptAccountEnclosure);
    }

    /**
     * 新增【租金到账附件】
     *
     * @param assetReceiptAccountEnclosure 【租金到账附件】
     * @return 结果
     */
    @Override
    public int insertAssetReceiptAccountEnclosure(AssetReceiptAccountEnclosure assetReceiptAccountEnclosure) {
        return assetReceiptAccountEnclosureMapper.insertAssetReceiptAccountEnclosure(assetReceiptAccountEnclosure);
    }

    /**
     * 修改【租金到账附件】
     *
     * @param assetReceiptAccountEnclosure 【租金到账附件】
     * @return 结果
     */
    @Override
    public int updateAssetReceiptAccountEnclosure(AssetReceiptAccountEnclosure assetReceiptAccountEnclosure) {
        return assetReceiptAccountEnclosureMapper.updateAssetReceiptAccountEnclosure(assetReceiptAccountEnclosure);
    }

    /**
     * 批量删除【租金到账附件】
     *
     * @param ids 需要删除的【租金到账附件】主键
     * @return 结果
     */
    @Override
    public int deleteAssetReceiptAccountEnclosureByIds(Long[] ids) {
        return assetReceiptAccountEnclosureMapper.deleteAssetReceiptAccountEnclosureByIds(ids);
    }

    /**
     * 删除【租金到账附件】信息
     *
     * @param id 【租金到账附件】主键
     * @return 结果
     */
    @Override
    public int deleteAssetReceiptAccountEnclosureById(Long id) {
        return assetReceiptAccountEnclosureMapper.deleteAssetReceiptAccountEnclosureById(id);
    }

}
